package com.ypbase.cloud.tags.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.cloud.framework.core.dal.entity.MyBaseEntity;

@Entity()
@Table(name = "tb_tag")
public class Tag extends MyBaseEntity<Long> implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "ID", nullable = false, updatable = false, length = 20)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	@Column(name = "COMPANY_ID", nullable = true, length = 20)
	private Long companyId;

	@Column(name = "CATEGORY_ID", nullable = true, length = 20)
	private Long categoryId;

	@Column(name = "CATEGORY_CNAME", nullable = true, length = 50)
	private String categoryCname;

	@Column(name = "ENAME", nullable = true, length = 50)
	private String ename;

	@Column(name = "CNAME", nullable = true, length = 50)
	private String cname;

	@Column(name = "DESCRIPT", nullable = true, length = 100)
	private String descript;

	@Column(name = "TYPE", nullable = true, length = 10)
	private Integer type;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * COMPANY_ID BIGINT(20)
	 */
	public Long getCompanyId() {
		return companyId;
	}

	/**
	 * COMPANY_ID BIGINT(20)
	 */
	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}

	/**
	 * CATEGORY_ID BIGINT(20)
	 */
	public Long getCategoryId() {
		return categoryId;
	}

	/**
	 * CATEGORY_ID BIGINT(20)
	 */
	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}

	/**
	 * CATEGORY_CNAME VARCHAR(50)
	 */
	public String getCategoryCname() {
		return categoryCname;
	}

	/**
	 * CATEGORY_CNAME VARCHAR(50)
	 */
	public void setCategoryCname(String categoryCname) {
		this.categoryCname = categoryCname;
	}

	/**
	 * ENAME VARCHAR(50)
	 */
	public String getEname() {
		return ename;
	}

	/**
	 * ENAME VARCHAR(50)
	 */
	public void setEname(String ename) {
		this.ename = ename;
	}

	/**
	 * CNAME VARCHAR(50)
	 */
	public String getCname() {
		return cname;
	}

	/**
	 * CNAME VARCHAR(50)
	 */
	public void setCname(String cname) {
		this.cname = cname;
	}

	/**
	 * DESCRIPT VARCHAR(100)
	 */
	public String getDescript() {
		return descript;
	}

	/**
	 * DESCRIPT VARCHAR(100)
	 */
	public void setDescript(String descript) {
		this.descript = descript;
	}

	/**
	 * TYPE INT(10)
	 */
	public Integer getType() {
		return type;
	}

	/**
	 * TYPE INT(10)
	 */
	public void setType(Integer type) {
		this.type = type;
	}

}
